<?php
session_start();
?>

<?php
	$username=$_SESSION['username'];
	
	if(trim($username )== "" )
	{
		echo <<<aaa
		<script language="javascript">
		alert('还没有登录，请先登录')
		location.href='admin_login.php';
		</script>
aaa;
	}
?>